﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data;
using System.Net;
namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {

            WebClient clinet = new WebClient();
            string terry= clinet.DownloadString("http://localhost:32558/Service1.svc/GetUserByName");
            Console.WriteLine(terry);

            Console.ReadLine();
            

            DataTable table = DbProviderFactories.GetFactoryClasses();

            foreach (DataRow row in table.Rows)
            {
                foreach (DataColumn c in table.Columns)
                {
                    Console.WriteLine(row[c]);
                }
            }
            Console.ReadLine();
        }
    }
}
